package com.prs.crm.domain.purchase;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.FlowEntity;
import com.prs.crm.domain.stock.Product;
import com.prs.crm.domain.stock.Supplier;
/**
 * 产品询价明细表
 * @author zhang
 * **/
@Entity
@Table(name="stock_inquiry")
public class Inquiry extends FlowEntity {
	
	private static final long serialVersionUID = 1L;
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@ManyToOne
	private SupplierInquiry supplierInquiry;
	@ManyToOne
	private Product product;
	@ManyToOne
	private Supplier supplier;
	private Double price;
	private Double discount;
	private Double total;
	
	@Column(columnDefinition ="Integer(2) default '0'") 
	private Integer processTag;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public SupplierInquiry getSupplierInquiry() {
		return supplierInquiry;
	}
	public void setSupplierInquiry(SupplierInquiry supplierInquiry) {
		this.supplierInquiry = supplierInquiry;
	}
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public Supplier getSupplier() {
		return supplier;
	}
	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Double getDiscount() {
		return discount;
	}
	public void setDiscount(Double discount) {
		this.discount = discount;
	}
	public Double getTotal() {
		return total;
	}
	public void setTotal(Double total) {
		this.total = total;
	}
	public Integer getProcessTag() {
		return processTag;
	}
	public void setProcessTag(Integer processTag) {
		this.processTag = processTag;
	}
	
}
